package core

import (
	"server/bitkop/core/config"
	"github.com/ngaut/log"
	"server/bitkop/core/redis"
)

var BK *BitKop

func init() {
	BK = NewCore()
	log.Infof("new bk...")
}

type BitKop struct {
	TOMLConfig			*config.Conf
	Redis 				*redis.RedisPools
	// data.Data
}

func NewCore() *BitKop {
	cfg := config.NewConfig()
	bk := &BitKop{
		TOMLConfig: 		cfg,
		Redis: 				redis.NewRedisPools(cfg.Redis),
	}

	bk.TOMLConfig.Log.Setting()

	// bk.Data = data.NewData()

	return bk
}


